package com.lzk.Controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lzk.constants.SystemConstants;
import com.lzk.domain.ResponseResult;
import com.lzk.domain.entity.Article;
import com.lzk.domain.entity.Category;
import com.lzk.enums.AppHttpCodeEnum;
import com.lzk.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author: 刘中魁
 */
@RestController
@RequestMapping("/category")
public class CategoryContoller {

    @Autowired
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList(){
       ResponseResult result =  categoryService.getCategoryList();

        return result;
    }

}
